package homework05;

public class MyThread extends Thread{
	private int number;
	private static int total;
	@Override
	public void run() {
		for(int i=number;i>=number-9;i--){
			total+=i;
		}
		
	}
	public static int getTotal() {
		return total;
	}
	public MyThread(int number){
		this.number=number;
	}
}
